% TEST_ID: LANG-CONTROL-FLOW-0010
% CATEGORY: language/control-flow
% for 循环内的 break 语句

function test_for_loop_break
    x = 0;
    for i = 1:10
        x = i;
        if i == 5
            break;
        end
    end

    assert(x == 5)
end

